package spring.mvc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import spring.mvc.domain.Comment;
import spring.mvc.dao.CommentDao;
import spring.mvc.service.CommentService;

import org.springframework.stereotype.Service;

@Service
public class CommentServiceimple implements CommentService {
	@Resource
	private CommentDao CommentDao;

	@Override
	public Integer co_write(Comment comment) throws Exception 
	{
		return CommentDao.co_write(comment);		
	}
	
	@Override
	public List<Comment> list(String seq) throws Exception
	{
		return CommentDao.list(seq);
	}
	
	@Override
	public void co_delete( Comment comment) throws Exception
	{
		CommentDao.co_delete(comment);
	}
	
	@Override
	public void co_update_com(Comment comment) throws Exception
	{
		CommentDao.co_update_com(comment);
	}
}
